<template>
  <div v-bind="$attrs" class="empty-wrap df fdc jcc aic">
    <img class="empty-img" v-bind="imgAttrs" :src="imgUrl || url" alt="" />
    <div class="empty-text">
      <!-- {{ desc || '暂无数据' }} -->
    </div>
  </div>
</template>
<script setup lang="ts">
  const props = defineProps<{
    imgUrl?: string
    desc?: string
    imgAttrs?: object
  }>()
  const url = require('@/assets/images/empty.png')
</script>
<style lang="scss" scoped>
  .empty-wrap {
    text-align: center;
    .empty-img {
      width: 200px;
      height: 200px;
      margin-bottom: 32px;
    }
    .empty-text {
      color: #333;
    }
  }
</style>
